<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Sys
 *
 * @author bonfiglio
 */
class Sys {

    public static function convertBytes($size) {
        $unit = array('o', 'Ko', 'Mo', 'Go', 'To', 'Po');
        return @round($size / pow(1024, ($i = floor(log($size, 1024)))), 2) . ' ' . $unit[$i];
    }
}

?>
